﻿<Window
    x:Class="Deep_Talk_Converter.SettingsDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:p="clr-namespace:Deep_Talk_Converter.Properties"
    xmlns:c="clr-namespace:Deep_Talk_Converter.Controls"
    Title="DeepTalk Settings"
    Height="265"
    Width="400"
    MinWidth="300">
    <StackPanel Orientation="Vertical" Margin="0,10,0,5">
        <StackPanel Orientation="Horizontal" Margin="0,0,0,5">
            <Label>DPI (Rendering Talk PDFS):</Label>
            <TextBox Text="{Binding Source={x:Static p:Settings.Default}, Path=DPI, Mode=TwoWay}" />
        </StackPanel>
        <DockPanel Margin="0,0,0,5">
            <Label>Output Directory:</Label>
            <c:TextBoxAutoSelect Text="{Binding Source={x:Static p:Settings.Default}, Path=JobOutput, Mode=TwoWay}" HorizontalAlignment="Stretch" Margin="0,0,5,0"/>
        </DockPanel>
        <DockPanel Margin="0,0,0,5">
            <Label>Deep Zoom Template Path:</Label>
            <c:TextBoxAutoSelect Text="{Binding Source={x:Static p:Settings.Default}, Path=DeepZoomTemplatePath, Mode=TwoWay}" HorizontalAlignment="Stretch" Margin="0,0,5,0"/>
        </DockPanel>
        <DockPanel Margin="0,0,0,5">
            <Label>Ghostscript Path:</Label>
            <c:TextBoxAutoSelect Text="{Binding Source={x:Static p:Settings.Default}, Path=GhostscriptPath, Mode=TwoWay}" HorizontalAlignment="Stretch" Margin="0,0,5,0"/>
        </DockPanel>
        <DockPanel Margin="0,0,0,5">
            <Label>Temporary Files Path:</Label>
            <c:TextBoxAutoSelect Text="{Binding Source={x:Static p:Settings.Default}, Path=TempPath, Mode=TwoWay}" HorizontalAlignment="Stretch" Margin="0,0,5,0"/>
        </DockPanel>
        <Button Name="SaveButton" Click="SaveButton_Click" Padding="1" HorizontalAlignment="Right" Margin="0,0,15,0">Save</Button>
    </StackPanel>
</Window>
